input[type="checkbox"] {
  display: none;
}
input[type="checkbox"] + label {
  display: inline-block;
  width: 40px;
  height: 20px;
  position: relative;
  -webkit-transition: 0.3s;
  transition: 0.3s;
  margin: 0px 20px;
  box-sizing: border-box;
}
input[type="checkbox"] + label:after,
input[type="checkbox"] + label:before {
  content: '';
  display: block;
  position: absolute;
  left: 0px;
  top: 0px;
  width: 20px;
  height: 20px;
  -webkit-transition: 0.3s;
  transition: 0.3s;
  cursor: pointer;
}

#md-1:checked + label.red,
#md-2:checked + label.red,
#md-3:checked + label.red {
  background: #ECA9A7;
}
#md-1:checked + label.red:after,
#md-2:checked + label.red:after,
#md-3:checked + label.red:after {
  background: #D9534F;
}
#md-1:checked + label.green,
#md-2:checked + label.green,
#md-3:checked + label.green {
  background: #AEDCAE;
}
#md-1:checked + label.green:after,
#md-2:checked + label.green:after,
#md-3:checked + label.green:after {
  background: #5CB85C;
}

#md-1:checked + label.blue,
#md-2:checked + label.blue,
#md-3:checked + label.blue {
  background: #5C59FB;
}
#md-1:checked + label.blue:after,
#md-2:checked + label.blue:after,
#md-3:checked + label.blue:after {
  background: #332FFF;
}

#md-1:checked + label:after,
#md-2:checked + label:after,
#md-3:checked + label:after {
  left: calc(100% - 20px);
}
#md-1 + label,
#md-2 + label,
#md-3 + label {
  background: #ddd;
  border-radius: 20px;
  height: 10px;
}
#md-1 + label:after,
#md-2 + label:after,
#md-3 + label:after {
  background: #fff;
  border-radius: 50%;
  top: -5px;
  box-shadow: 0px 0px 3px #aaa;
}

h3 {
  font-family: verdana;
}
.row {
  width: 50%;
  display: block;
  line-height: 60px;
  text-align: center;
  float: center;
}
@media screen and (max-width: 600px) {
  .row {
    width: 100%;
    float: none;
  }
}
